OstreeFetcher: provide proxy credentials if needed
authorJonathan Lebon <jlebon@redhat.com>
Fri, 14 Oct 2016 13:25:01 +0000 (09:25 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 14 Oct 2016 16:06:08 +0000 (16:06 +0000)
commita660e5650d0f460810ea75c44d044b6924659f59
tree6d8a0bdd867efdbdf093f40e5edf597a66e842b9
parenta0598cb494cb3b266c28696470eab7be6d29b3ed
OstreeFetcher: provide proxy credentials if needed

There seems to be an issue in libsoup which causes basic auth
credentials to not be passed to the proxy during requests. We thus have
to handle PROXY_UNAUTHORIZED responses and provide the auth ourselves.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1370558
Related: https://bugzilla.gnome.org/show_bug.cgi?id=772932

Closes: #529
Approved by: cgwalters
src/libostree/ostree-fetcher.c